package geeks.negocio;

import java.util.Collection;

import geeks.dao.RolDAO;
import geeks.excepcion.DAOExcepcion;
import geeks.modelo.Rol;

public class GestionRol {
	
	public Collection<Rol> listarRoles() throws DAOExcepcion {
		
		RolDAO dao = new RolDAO();
		return dao.listar();
	}

	public Rol buscarRol(int idRol) throws DAOExcepcion {
		
		RolDAO dao = new RolDAO();
		return dao.buscar(idRol);
	}
	
}
